PASS DEMO: In this lesson you'll use toolkit tools with code that includes a pass statement. So what is pass?

pass is a Python command that literally does nothing! It is often used as placeholder code to prevent an error.

  • Follow along with the demo to see how pass helps prevent an error. When can we remove pass?
  • Find the pass indented in the function and delete it! Make sure that the other code stays indented.
  • Click Run to see the program work. Click Submit and Next when you're ready to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)